home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 138
/
Volume 138 Aug 19 2011 - Damaged.iso
/
Games
/
shadez.swf
/
scripts
/
STC9
/
IO
/
CKey.as
next >
Wrap
Text File
|
2011-08-19
|
1KB
|
76 lines
package STC9.IO
{
import flash.utils.getTimer;
public class CKey
{
static var mNumberOfSamples:Number = 30;
public var mReleased:int;
public var mPressed:int;
public var mDown:Boolean;
public var mKeyCode:int;
public function CKey(param1:Number)
{
if(true)
{
super();
mKeyCode = param1;
}
}
public function get _CLASSID_() : String
{
return "CKey";
}
public function Clear() : void
{
mDown = false;
mPressed = 0;
mReleased = 0;
}
public function RegisterAsUp() : *
{
if(true)
{
if(mDown)
{
if(true)
{
mDown = false;
}
mReleased = getTimer();
}
}
}
public function RegisterAsDown() : *
{
if(true)
{
if(!mDown)
{
if(true)
{
mDown = true;
}
mPressed = getTimer();
}
}
}
public function get _BASECLASSID_() : String
{
return "CKey";
}
}
}